package com.juc.threadPoolExecutor.threadPoolExecutor9;

import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
 * 构造方法 定制ThreadFactory
 * 
 *
 */
public class Test1 {

	public static void main(String[] args) {
		MyRunnable1 myRunnable = new MyRunnable1();
		ThreadPoolExecutor pool = new ThreadPoolExecutor(2, 99999, 9999L, TimeUnit.SECONDS, new LinkedBlockingDeque<Runnable>(), new MyThreadFactoryA());
		pool.execute(myRunnable);
	}
}
